import request from '@/utils/request'

// 查询库存期初详情列表
export function listBizInventoryOpeningDetails (query) {
  return request({
    url: '/biz/bizInventoryOpeningDetails/list',
    method: 'get',
    params: query
  })
}

// 查询库存期初详情详细
export function getBizInventoryOpeningDetails (id) {
  return request({
    url: '/biz/bizInventoryOpeningDetails/' + id,
    method: 'get'
  })
}

// 新增库存期初详情
export function addBizInventoryOpeningDetails (data) {
  return request({
    url: '/biz/bizInventoryOpeningDetails',
    method: 'post',
    data: data
  })
}

// 修改库存期初详情
export function updateBizInventoryOpeningDetails (data) {
  return request({
    url: '/biz/bizInventoryOpeningDetails',
    method: 'put',
    data: data
  })
}

// 删除库存期初详情
export function delBizInventoryOpeningDetails (id) {
  return request({
    url: '/biz/bizInventoryOpeningDetails/' + id,
    method: 'delete'
  })
}


// 导出库存期初详情
export function exportBizInventoryOpeningDetails (query) {
  return request({
    url: '/biz/bizInventoryOpeningDetails/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizInventoryOpeningDetails/getInitData/' + dictTypes,
    method: 'get'
  })
}
